﻿using MongoDB.Bson;
using System;
using System.Collections.Generic;
using System.Text;

namespace BlockMain_Class
{
    /// <summary>
    /// 每张表需继承的标准类
    /// </summary>
    public class Standard
    {
        public ObjectId Id { get; set; }

        public string State { get; set; }

        public string CreateTime { get; set; }

        public string UpdateTime { get; set; }

    }

    /// <summary>
    /// 节点的账本 Collections(连接)
    /// </summary>
    public class AccountBook : Standard
    {
        public int Height { get; set; }
        public string TimeStamp { get; set; }
        public string Data { get; set; }

        public string Hash { get; set; }

        public string PrevHash { get; set; }
    }

    //public class AccountBook1 : AccountBook { };
    //public class AccountBook2 : AccountBook { };
    //public class AccountBook3 : AccountBook { };
    //public class AccountBook4 : AccountBook { };
    /// <summary>
    ///  节点列表 Collections(连接)
    /// </summary>
    public class PeerList : Standard
    {
        public string PeerIp { get; set; }
        public int Port { get; set; }
        public string Account { get; set; }

        public string Password { get; set; }

        public string PeerUrl { get; set; }

        public string Detail { get; set; }
    }


    /// <summary>
    /// 入链记录 读取排序列表存放 合约的作用
    /// </summary>
    public class Records : Standard
    {
        public string JsonData { get; set; }
    }

    /// <summary>
    /// 入链进度 
    /// </summary>
    public class Speed : Standard
    {
        public string Detail { get; set; }
        public int Sort { get; set; }
        public string Record { get; set; }

    }








}
